import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/NavigationBar.dart';
class FaceRecPage extends StatefulWidget {
  final Function onCallback;
  FaceRecPage({this.onCallback});
  @override
  _FaceRecPageState createState() => _FaceRecPageState();
}

class _FaceRecPageState extends State<FaceRecPage> {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 375, height: 667, allowFontScaling: true);
    return Scaffold(
      resizeToAvoidBottomInset: false,
      body: Column(
        children: [
          SizedBox(height: MediaQuery.of(context).padding.top,),
          NavigationBar(false,title: "福祥e贷",),
          Container(
            height: ScreenUtil.screenHeight-MediaQuery.of(context).padding.top-ScreenUtil().setWidth(70),
            width: ScreenUtil.screenWidth,
            child:ListView(
              children: [
                SizedBox(
                  height: ScreenUtil().setWidth(37),
                ),
                Container(
                  width: ScreenUtil().setWidth(311),
                  child:Text("为保证拍摄效果，请您在光线适宜的环境下进行",style: TextStyle(fontSize: ScreenUtil().setSp(14),color: Color(0xff5CAFE5)),textAlign: TextAlign.center,),
                ),
                SizedBox(
                  height: ScreenUtil().setWidth(15),
                ),
                Container(
                  width: ScreenUtil().setWidth(311),
                  child:Text("王*五、430311********3256",style: TextStyle(fontSize: ScreenUtil().setSp(16),color: Color(0xff000000)),textAlign: TextAlign.center,),
                ),
                SizedBox(
                  height: ScreenUtil().setWidth(19),
                ),
                Row(
                  children: [
                    SizedBox(
                      width: ScreenUtil().setWidth(35),
                    ),
                    Container(
                      width: ScreenUtil().setWidth(301),
                      child: Image.asset("sources/yy/faceNotice.png"),
                    ),
                  ],
                ),

                SizedBox(
                  height: ScreenUtil().setWidth(26),
                ),
                InkWell(
                  onTap: (){
                    Navigator.of(context).pop("yes");
                  },
                  child:Column(
                       children: [
                         Container(
                             decoration: BoxDecoration(
                               borderRadius: BorderRadius.circular(4),
                               color:Color(0xff41A5EE),
                             ),
                             width: ScreenUtil().setWidth(347),
                             height: ScreenUtil().setWidth(44),
                             child:Center(
                               child: Text("拍摄本人人脸",style: TextStyle(fontSize: ScreenUtil().setSp(17),color: Colors.white),textAlign: TextAlign.center,),
                             )
                         ) ,
                       ],
                   )
                ),
                SizedBox(
                  height: ScreenUtil().setWidth(50),
                ),
                Container(
                  width: ScreenUtil().setWidth(318),
                  child:Text("本次人脸拍摄仅用于个人信息及个人征信查询授权",style: TextStyle(fontSize: ScreenUtil().setSp(14),color: Color(0xff666666)),textAlign: TextAlign.center,),
                ),
              ],
            ) ,
          )

        ],
      ),
    );
  }

}
